package org.haredot.annotation;

import org.haredot.web.RequestMethod;

import java.lang.annotation.*;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RequestMapping {
    /**
     * 设置 请求 路径
     * @return
     */
    String value() default "";

    /**
     * 请求方式
     * @return
     */
    RequestMethod[] method() default { RequestMethod.GET, RequestMethod.POST } ;

}
